<?php
include("../inc/global.inc");
include("islogin.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心-三帝贸易网</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/qq.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="js/left.js"></script>
<body>
<div id="mian">
<?php include("inc/top.php");?>
<div class="top1"><span>您当前位置：<a href="index.php" class="dh">会员助手</a> &gt;&gt; 首页</span></div>
<div class="left">
<?php include("inc/left.php");?>
</div>
<div class="right">
<?php 
 $m_rs=mysql_query("select * from member where id='".$_COOKIE['user_id']."'");
 $m_row=mysql_fetch_array($m_rs);
?>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
   <TR>
     <TD height="40" bgcolor="#EFF6FF" style="font-size:18px;font-weight:bold;padding-left:8px;">会员中心</TD>
   </TR>
</TABLE>
<br>
<?php $l_rs=@mysql_query("select * from note where to_id='".$_COOKIE['user_id']."' and to_is_id=1 and is_read=0");
	  $l_num=@mysql_num_rows($l_rs);
?>
<TABLE width="100%" border="0" cellPadding="0" cellSpacing="1" bgcolor="#9DBDE6">
  <TR>
    <TD height="45" bgcolor="#EDF3FD" style="padding:5px;"><IMG src="images/mail.gif" width="16" height="17" border="0" align="absmiddle">&nbsp;您有 <A href="mail/inbox.php"><?=$l_num?></A> 条留言未读！&nbsp;&nbsp;<IMG src="images/JT_4.gif" width="11" height="11" border="0" align="absmiddle"><A href="mail/inbox.php">立即查看邮件</A>&nbsp;</TD>
     </TR>
</TABLE>
<br>
<TABLE width="100%" border="0" cellPadding="0" cellSpacing="1" bgcolor="#FDCA3D">
  <TR>
    <TD height="45" bgcolor="#FEEDC2" style="padding:5px;line-height:35px;"><b>您好:</b><font color="#CC3333"><?=$m_row[m_name]?> <?=$m_row[m_sex]?></font><br>
  <b>帐户余额：</b><img src="images/sdb.gif" alt="三帝币" border="0" align="absmiddle"><font color="red"><?=$m_row[m_jifen]?></font>三帝币&nbsp;&nbsp;<a href="pay.php">立即充值</a>&nbsp;&nbsp;<a href="paylist.php">查看详情</a><br>
<b>注册时间:</b><?=date("Y-m-d",strtotime($m_row[m_addtime]))?><br>
  <b>最近登陆时间:</b><?=$m_row[m_logintime]?></TD>
   </TR>
</TABLE>
<br>
</div>
<div class="onl"></div>
<?php include("inc/foot.php");?>
</div>
</body>
</html>
<script src="/member/js/qq.js" type="text/javascript" charset='gb2312'></script>